package com.lirenzhao.googlenotes;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.Menu.Item;

public class NoteList extends Activity {
	private static final int INSERT_ID = Menu.FIRST;
    private static final int DELETE_ID = Menu.FIRST + 1;
    
    @Override
	public boolean onCreateOptionsMenu(Menu menu) {
    	super.onCreateOptionsMenu(menu);
		menu.add(0, INSERT_ID, R.string.create);
        menu.add(0, DELETE_ID, R.string.about_title);
        return true;
	}
    
	@Override
	public boolean onMenuItemSelected(int featureId, Item item) {
		// TODO Auto-generated method stub
		super.onMenuItemSelected(featureId, item);
        switch(item.getId()) {
        case INSERT_ID:
            //createNote();
            break;
        case DELETE_ID:
        	//dbHelper.deleteRow(rows.get(getSelection()).rowId);
            //fillData();
            break;
        }
        
        return true;
	}

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.notelist);
    }
}